<template>
  <div class="home">
    <h1 class="shenqi-text-center">
      {{ text }}
    </h1>
  </div>
</template>

<script>
import { getHomeData } from '@/api/home'
import { mapGetters } from 'vuex'
export default {
  name: 'Home',
  computed: {
    ...mapGetters(['text'])
  },
  created() {
    console.log(this.$shenqijs.getOsInfo())
    this.getHomeData()
  },
  mounted() {
    console.log(5)
  },
  methods: {
    getHomeData() {
      getHomeData().then((res) => {
        console.log(res)
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.home {
}
</style>
